import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DictTypeModule } from '../dict_type/dict_type.module';
import { DictType } from '../dict_type/entities/dict_type.entity';
import { DictController } from './dict.controller';
import { DictService } from './dict.service';
import { Dict } from './entities/dict.entity';

@Module({
  imports:[
    TypeOrmModule.forFeature([Dict,DictType]),
    forwardRef(() => DictTypeModule)
  ],
  controllers: [DictController],
  providers: [DictService]
})
export class DictModule {}
